package com.academic_system.model;

import com.academic_system.util.DateJsonType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.util.Date;


public class Notice {
    private int noticeId;
    private Integer teInfoId;
    private String noticeTitle;
    private String noticeContent;
    private String noticeAuthor;
    @JsonSerialize(using = DateJsonType.class)
    private Date noticeDatetime;



    public int getNoticeId() {
        return noticeId;
    }

    public void setNoticeId(int noticeId) {
        this.noticeId = noticeId;
    }


    public Integer getTeInfoId() {
        return teInfoId;
    }

    public void setTeInfoId(Integer teInfoId) {
        this.teInfoId = teInfoId;
    }


    public String getNoticeTitle() {
        return noticeTitle;
    }

    public void setNoticeTitle(String noticeTitle) {
        this.noticeTitle = noticeTitle;
    }


    public String getNoticeContent() {
        return noticeContent;
    }

    public void setNoticeContent(String noticeContent) {
        this.noticeContent = noticeContent;
    }


    public String getNoticeAuthor() {
        return noticeAuthor;
    }

    public void setNoticeAuthor(String noticeAuthor) {
        this.noticeAuthor = noticeAuthor;
    }

    public Date getNoticeDatetime() {
        return noticeDatetime;
    }

    public void setNoticeDatetime(Date noticeDatetime) {
        this.noticeDatetime = noticeDatetime;
    }

    @Override
    public String toString() {
        return "Notice{" +
                "noticeId=" + noticeId +
                ", teInfoId=" + teInfoId +
                ", noticeTitle='" + noticeTitle + '\'' +
                ", noticeContent='" + noticeContent + '\'' +
                ", noticeAuthor='" + noticeAuthor + '\'' +
                ", noticeDatetime=" + noticeDatetime +
                '}';
    }
}
